package com.zsix.system.mapper.formComponentsMapper;

import com.zsix.common.entity.formComponents.FormMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface FormMenuMapper {
    /**
     * 获取表单菜单详情
     * @param id
     * @return
     */
    FormMenuEntity getFormAppSetting(String id);
    /**
     * 获取表单应用列表
     * @param formEntity
     * @return
     */
    List<FormMenuEntity> formApplicationList(FormMenuEntity formEntity);

    /**
     * 增加表单菜单
     * @param formEntity
     * @return
     */
    int addFormMenu(FormMenuEntity formEntity);

    /**
     * 更新菜单
     * @param formEntity
     * @return
     */
    int updateFormMenu(FormMenuEntity formEntity);

    /**
     * 删除表单应用
     * @param id
     * @return
     */
    int depeteFormMenu(String id);
}
